{% extends "base.html" %}
{% load upload_tags %}
{% block content %}
	<h2>Confirm deletion</h2>
	<div>
	<form action="{% url delete %}" method="post">
		<div id="csrf_token">{% csrf_token %}</div>
		<table id="upload_table">
			<caption>Are you sure you want to delete this file?</caption>
			<thead>
				<tr>
					<th>Name</th>
					<th>Size</th>
					<th>Timestamp</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>{{upload.file.name|basename}}</td>
					<td class="nowrap">{{upload.file.size|filesizeformat}}</td>
					<td class="nowrap">{{upload.timestamp|date:"Y-m-d H:i"}}</td>
				</tr>
			</tbody>
		</table>
		<input type="hidden" name="id" value="{{upload.id}}"/>
		
		<input type="submit" name="delete" value="Delete"/>
		<input type="submit" name="cancel" value="Cancel"/>
	</form>
	</div>
{% endblock %}
